import { setUserInfo, getUserInfo } from '@/utils/userInfoLocal.js'
export default {
  namespaced: true,
  state () {
    return {
      // 用户权证
      userMessage: getUserInfo()
    }
  },
  mutations: {
    getUserMessage (state, obj) {
      // 将用户登录权证存入vuex
      state.userMessage = obj
      // 将用户登录权证存入本地
      setUserInfo(obj)
    }
  },
  actions: {},
  getters: {}
}
